package org.example.feign;

import org.example.util.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Auther:Liu
 * @Testname:SchoolFeign
 * @Date:2025/9/9 15:35
 */
@FeignClient(name = "cloud-example-max-school",path = "/school")
public interface SchoolFeign {

    @GetMapping("/find_id/{id}")
    JsonResult findById(@PathVariable("id") String id);
}
